package com.kcht.sylyg08.ctrl;


import com.kcht.adp.common.log.Logger;
import com.kcht.adp.pagination.Page;
import com.kcht.adp.web.rs.AdpRest;
import com.kcht.sylyg08.ctrl.vo.ContainerStatusTransformRecordVO;
import com.kcht.sylyg08.service.ContainerStatusTransformRecordService;
import com.kcth.sylyg08.entity.ContainerStatusTransformRecord;

import javax.enterprise.context.RequestScoped;
import javax.inject.Inject;
import javax.transaction.Transactional;
import javax.ws.rs.QueryParam;
import java.util.List;

@RequestScoped
@Transactional(Transactional.TxType.NOT_SUPPORTED)
public class ContainerStatusTransformRecordCtrl {
    @Inject
    private Logger logger;
    @Inject
    private ContainerStatusTransformRecordService service;

    @AdpRest(principal = "料框状态记录", permission = "料框状态记录")
    public Page<ContainerStatusTransformRecord, ContainerStatusTransformRecordVO> list(Page<ContainerStatusTransformRecord, ContainerStatusTransformRecordVO> page) {
        return service.list(page);
    }

    @AdpRest(principal = "料框状态记录", permission = "料框状态记录")
    public void save(ContainerStatusTransformRecord record) {
        service.save(record);
    }

    @AdpRest(principal = "料框状态记录", permission = "料框状态记录表")
    public void delete(@QueryParam("ids") List<Integer> ids) {
        service.delete(ids);
    }

}
